*** Why don’t We Learn from Social Media? Studying Effects of and Mechanisms behind Social Media News Use on General Surveillance Political Knowledge 
*** Patrick van Erkel & Peter Van Aelst
*** Do file replication tables and figures
*** Stata 14
*** Last edited: May 20, 2020

* Note that this dataset is part of a larger dataset. Only the variables used for this article are included
* For access to the full dataset or more details please email the corresponding author
* patrick.vanerkel@uantwerpen.be

********************** Open data ********************
use "learn social media_cleaned.dta", clear

********************************* Main Analysis *********************************

************ Table 1 *******************
tab1 PK1 PK2 PK3 PK4 PK5 PK6
msp PK1 PK2 PK3 PK4 PK5 PK6
** Note msp package should be installed
* findit msp

*********** Figure 1 ******************
tab PK

*********** Table 2 *******************
sum PK Information_overload personalized_news News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6

*********** Table 3 *******************
tab1 News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6

*********** Table 4 *******************
reg PK News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6 ///	
	Gender Age i.Education Political_interest if !missing(Information_overload) // Model 1

reg PK News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6 ///
	Gender Age i.Education Political_interest personalized_news if !missing(Information_overload) // Model 2
	
reg PK News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 c.News_channels_w4_6##c.personalized_news ///
	Gender Age i.Education Political_interest if !missing(Information_overload) // Model 3

reg PK News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6 Gender Age ///
	i.Education Political_interest Information_overload // Model 4

************ Table 5 *******************
reg personalized_news News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6 ///
	Gender Age i.Education if !missing(Information_overload)
	
************ Table 6 *******************
reg Information_overload News_channels_w4_1 News_channels_w4_2 News_channels_w4_3 News_channels_w4_4 News_channels_w4_5 News_channels_w4_6 ///
	Gender Age i.Education Political_interest

*********** Table 7 ********************
reg PK Low_news FB_reliant FB_all Gender Age i.Education Political_interest if !missing(Information_overload) // Model 1
reg PK Low_news FB_reliant FB_all Information_overload Gender Age i.Education Political_interest if !missing(Information_overload) // Model 2
reg Information_overload Low_news FB_reliant FB_all Gender Age i.Education Political_interest if !missing(Information_overload) // Model 3
